<template>
    <div>
        <el-container class="form-container">
            <el-card class="box-card" shadow="never">
                <div slot="header" class="clearfix">
                    <span>接口日志</span>
                    <el-button type="primary" size="mini" style="float:right;padding: 6px 9px;" @click="handlerSubmitForm">保存</el-button>
                </div>
                <div>
                    <el-form  :rules="rules"  ref="form" :label-position="labelPosition"  :model="form" size="small" label-width="120px">
                        <el-row>
                        <el-col :span="12">
                            <el-form-item  label="创建时间" required prop="fdCreateTime">
                                <el-input class="input" v-model="form.fdCreateTime" required ></el-input>
                            </el-form-item>
                        </el-col>
                        <el-col :span="12">
                            <el-form-item  label="参数管理"  prop="fdParam">
                                <el-input class="input" v-model="form.fdParam"  ></el-input>
                            </el-form-item>
                        </el-col>
                        </el-row>
                        <el-row>
                        <el-col :span="12">
                            <el-form-item  label="接口服务key" required prop="fdServiceKey">
                                <el-input class="input" v-model="form.fdServiceKey" required ></el-input>
                            </el-form-item>
                        </el-col>
                        <el-col :span="12">
                            <el-form-item  label="接口IP"  prop="fdServiceIp">
                                <el-input class="input" v-model="form.fdServiceIp"  ></el-input>
                            </el-form-item>
                        </el-col>
                        </el-row>
                    </el-form>
                </div>
            </el-card>
        </el-container>
    </div>
</template>
<script>
import {edit,parentEdit} from '@/components/mixins/form'
export default {
    name: "sysRestLogEdit",
    components: {
    },
    data() {
        return {
            updateUrl:'/api/sys/rest/sys_rest_log',
            fetchUrl:'/api/sys/rest/sys_rest_log',
            fetchParentUrl:'/api/sys/rest/sys_rest_log',
            form: {
                fdCreateTime:'',
                fdParam:'',
                fdServiceKey:'',
                fdServiceIp:''
            },
            rules:{
                fdCreateTime :[{required: true, message: '请输入创建时间', trigger: 'blur'}],
                fdServiceKey :[{required: true, message: '请输入接口服务key', trigger: 'blur'}],
	        }
        }
    },
    mixins:[edit,parentEdit]
}
</script>
<style scoped>
@import "~@/assets/css/form.css";
</style>